package yf.mall.service;

import yf.mall.entity.GoodsGroupEntity;
import yf.mall.vo.GoodsGroupVo;
import com.yf.service.BaseService;
import java.io.InputStream;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

import org.springframework.web.multipart.MultipartFile;

/**
 * 团购发起Service接口
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Sun Sep 25 10:16:00 CST 2022
 */
public interface GoodsGroupService extends BaseService<GoodsGroupEntity> {

    /************自动生成**************/
    List<GoodsGroupVo> findVo(GoodsGroupVo vo);

        GoodsGroupVo getVo(Long id);

     int updateVo(GoodsGroupVo vo);

       int saveVo(GoodsGroupVo vo);

    void downLoad(HttpServletResponse response, List<GoodsGroupVo> list);

    void upload(InputStream file);

    /***********BACK***********/




    /***********API***********/

    GoodsGroupEntity findByUserIdAndGoodsId(Long userId,Long goodsId);

    GoodsGroupEntity addGroup(Long userId,Long goodsId);


}
